package com.qqtech.qquan.delivery.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.TimeUtil;

@SuppressWarnings("serial")
public class DeliveryOrderVo extends DeliveryOrder{
	
	private String creatorNick;
	
	public String getCreatorNick() {
		return creatorNick;
	}

	public void setCreatorNick(String creatorNick) {
		this.creatorNick = creatorNick;
	}

	public String getStatusStr() {
		if (this.getStatus() == null) {
			return "";
		} else if (this.getStatus().intValue() == 1) {
			return "待入库";
		} else if (this.getStatus().intValue() == 2) {
			return "待签收";
		} else {
			return "已签收";
		}
	}
	
	public String getStrStatusAt() {
		return TimeUtil.getStringTimeByFormat(this.getStatusAt(), "yyyy-MM-dd HH:mm");
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}